package com.have.blog.admin.domain.dto;

import com.have.blog.base.dto.BaseDto;
import com.have.blog.base.validator.group.Insert;
import com.have.blog.base.validator.group.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class AdminRoleDto extends BaseDto<AdminRoleDto> {
    /**
     * 角色名称
     */
    @NotBlank(groups = {Insert.class, Update.class})
    private String roleName;

    /**
     * 介绍
     */
    private String summary;

    /**
     * 该角色资源UID
     */
    private List<Integer> resourceMenuUids;
}
